package com.logic.system.persistence.read;


import java.util.List;
import java.util.Map;

import com.logic.common.util.QueryUtil;
import com.logic.common.ws.dto.system.FormElementQuestionDTO;
import com.logic.system.domain.FormElement;

public interface FormElementReadMapper {

  FormElement selectByPrimaryKey(Integer id);

  List<FormElement> selectByFormIdAndSectionId(Map<String, Object> params);

  List<FormElement> selectByFormId(Integer formId);

  List<FormElement> selectByFormIdAll(Integer formId);


  List<FormElementQuestionDTO> selectQuestions(QueryUtil queryUtil);

  int checkCodeUnique(FormElement formElement);

  List<FormElement> getPassedElementsByMasterId(Integer masterId);
}
